package xyz.xtt.admin.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 区块链交易表
 * </p>
 *
 * @author author
 * @since 2024-11-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tbl_chain_transaction")
public class TblChainTransaction implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 交易hash
     */
    @TableId(value = "hash", type = IdType.AUTO)
    private String hash;

    /**
     * 发送地址
     */
    private String from;

    /**
     * 接收地址
     */
    private String to;

    /**
     * 区块高度
     */
    private String blockNumber;

    /**
     * 上链时间戳
     */
    private Integer blockTimestamp;

    /**
     * 手续费
     */
    private String gasUsed;

    /**
     * 合约执行结果0(失败) 1(成功)
     */
    private Integer status;

    /**
     * 错误信息
     */
    private String errorMsg;

    /**
     * 业务类型mint、transfer、approval、burn
     */
    private String type;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;


}
